package com.fingard.dsp.bank.reqrespobj.authforrec;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.xml.XmlTextReader;

public class ReqQryRecAuthInfo extends RequestBase {

    /**
     * 收方账号，可空，指定则只查单个
     */
    public String ownAct;
    /**
     * 收方区域，可空
     */
    public String ownArea;
    /**
     * 收方币种
     */
    public String ownCur;
    /**
     * 付方账号
     */
    public String oppAct;
    /**
     * 付方户名
     */
    public String oppName;
    /**
     * 付方区域
     */
    public String oppArea;
    /**
     * 付方币种
     */
    public String oppCur;
    /**
     *付方身份证号码
     */
    public String oppCertNum;
    /**
     * 付方手机号
     */
    public String oppCellNum;
    /**
     * 起始时间，yyyymmdd
     */
    public String dateFrom;
    /**
     * 截至时间，yyyymmdd
     */
    public String dateTo;
    /**
     * 签约类型，0-签约，1-解约
     */
    public String queryTag;
    /**
     * 公私标识，1：-对私，2-对公
     */
    public String isPrivate;
    /**
     * 请求预留字段1
     */
    public String reqReserve1;
    /**
     * 请求预留字段2
     */
    public String reqReserve2;
    /**
     * 请求预留字段3
     */
    public String reqReserve3;

    private XmlTextReader xmlReader;

    public ReqQryRecAuthInfo(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception {
        reqHeader = p_header;
        xmlReader = p_xmlReader;
        oppAct = xmlReader.getSimpleTextNotNull("PayAct");
        oppArea = xmlReader.getSimpleTextNotNull("PayArea");
        oppCur = xmlReader.getSimpleTextNotNull("PayCur");
        oppName = xmlReader.getSimpleTextNotNull("PayName");
        oppCellNum = xmlReader.getSimpleTextNotNull("CellPhone");
        oppCertNum = xmlReader.getSimpleTextNotNull("CertNum");
        ownAct = xmlReader.getSimpleTextNotNull("RecAct");
        ownArea = xmlReader.getSimpleTextNotNull("RecArea");
        ownCur = xmlReader.getSimpleTextNotNull("RecCur");
        dateFrom = xmlReader.getSimpleTextNotNull("DateFrom");
        dateTo = xmlReader.getSimpleTextNotNull("DateTo");
        queryTag = xmlReader.getSimpleTextNotNull("QueryTag");
        isPrivate = xmlReader.getSimpleTextNotNull("IsPrivate");
        reqReserve1 = xmlReader.getSimpleTextNotNull("ReqReserve1");
        reqReserve2 = xmlReader.getSimpleTextNotNull("ReqReserve2");
        reqReserve3 = xmlReader.getSimpleTextNotNull("ReqReserve3");
    }
}
